/**
 * Created by kangdaye on 16/5/23.
 */
app.controller('distributorPressCtr',["$scope","$rootScope","shareFactory", function($scope,$rootScope,shareFactory) {
    $scope.isShare = false;

    shareFactory({
        link : 'http://www.u-non.com?promote_code=' + ($rootScope.userInfoData ? $rootScope.userInfoData.myPromoteCode : '')
    });

    $scope.shareToggle = function(){
        $scope.isShare = !$scope.isShare;
    };
}]);
